package part08_外观模式_家庭影院;

/**
 * @ClassName: DVDPlayer
 * @Author: AllenSun
 * @Date: 2020/3/2 21:50
 */
public class Projecter {
    //使用一个单例模式（饿汉式）
    private static Projecter instance=new Projecter();

    public static Projecter getInstance(){
        return instance;
    }

    /**
     * @MethodName: on
     * @Author: AllenSun
     * @Date: 2020/3/2 21:51
     */
    public void on(){
        System.out.println("投影仪打开");
    }
    /**
     * @MethodName: off
     * @Author: AllenSun
     * @Date: 2020/3/2 21:55
     */
    public void off(){
        System.out.println("投影仪关闭");
    }

    /**
     * @MethodName: play
     * @Author: AllenSun
     * @Date: 2020/3/2 21:56
     */
    public void play(){
        System.out.println("投影仪播放");
    }

    /**
     * @MethodName: focus
     * @Author: AllenSun
     * @Date: 2020/3/2 21:56
     */
    public void focus(){
        System.out.println("投影仪聚焦");
    }
}
